package com.java.tutorials.spring.springInAction4th.chapter02.mixedconfig;

import org.springframework.beans.factory.annotation.Autowired;

public class CDPlayer3 implements MediaPlayer3 {
    private CompactDisc3 cd;

    @Autowired
    public CDPlayer3(CompactDisc3 cd) {
        this.cd = cd;
    }

    public void play() {
        cd.play();
    }

}
